﻿using System;
using System.Text;

namespace StringBuilderExt
{
    static class StringBuilderExtensions
    {
        public static StringBuilder Substring(this StringBuilder currentStrBuilder, int index, int lenght)
        {
            StringBuilder result = new StringBuilder(currentStrBuilder.ToString().Substring(index, lenght));
            return result;
        }

        public static void Main()
        {
            StringBuilder test = new StringBuilder("pesho testing with a long string");
            test = test.Substring(6, 12);
            Console.WriteLine(test);
        }
    }
}
